import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif

// 引入uview-ui
import uView from 'uview-ui'
Vue.use(uView)
// 如此配置即可
uni.$u.config.unit = 'rpx'

// 引入全局组件
import customBar from '@/components/custom-bar/custom-bar.vue'
Vue.use('custom-bar',customBar)

// 将api挂载在vue实例里面
import request from '@/util/request/request.js'
Vue.prototype.$API = request


